package com.tentact.Service.impl;

import com.tentact.Service.LoginService;
import com.tentact.mapper.LoginMapper;
import com.tentact.pojo.T_User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceimpl  implements LoginService {
        @Autowired
    LoginMapper loginMapper;
    @Override
    public Integer tUsersearch(String userName, String passWord) {
         T_User tUser = loginMapper.selecttUser(userName);

        if(tUser==null){
            return 0;
        }else {
         if (passWord.equals(tUser.getPassWord())){
             return 1;
         }else {return 0;}
        }

    }



}
